package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 社群对象 community
 * 
 * @author ruoyi
 * @date 2025-01-12
 */
public class Community extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 社群编码 */
    @Excel(name = "社群编码")
    private String communityId;

    /** 社群名称 */
    @Excel(name = "社群名称")
    private String communityName;

    /** 社群头像 */
    @Excel(name = "社群头像")
    private String communityIcon;

    /** 社群分类 */
    @Excel(name = "社群分类")
    private Long communityType;

    /** 成员加入限制：1无需审核，2需要审核 */
    @Excel(name = "成员加入限制：1无需审核，2需要审核")
    private Long joinRestrictions;

    /** 活动发布限制：1所有成员可发布活动，无需审核，2.所有成员可发布活动，需设长/管理员审核3.仅群主/管理员可发布活动 */
    @Excel(name = "活动发布限制：1所有成员可发布活动，无需审核，2.所有成员可发布活动，需设长/管理员审核3.仅群主/管理员可发布活动")
    private Long publishActivityRestrictions;

    /** 社群介绍 */
    @Excel(name = "社群介绍")
    private String communityIntroduction;

    /** 创建活动用户Id */
    @Excel(name = "创建活动用户Id")
    private Long createUserId;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createUser;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updateUser;

    /** 是否有效 1有效 0 无效 */
    @Excel(name = "是否有效 1有效 0 无效")
    private Long yn;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setCommunityId(String communityId) 
    {
        this.communityId = communityId;
    }

    public String getCommunityId() 
    {
        return communityId;
    }

    public void setCommunityName(String communityName) 
    {
        this.communityName = communityName;
    }

    public String getCommunityName() 
    {
        return communityName;
    }

    public void setCommunityIcon(String communityIcon) 
    {
        this.communityIcon = communityIcon;
    }

    public String getCommunityIcon() 
    {
        return communityIcon;
    }

    public void setCommunityType(Long communityType) 
    {
        this.communityType = communityType;
    }

    public Long getCommunityType() 
    {
        return communityType;
    }

    public void setJoinRestrictions(Long joinRestrictions) 
    {
        this.joinRestrictions = joinRestrictions;
    }

    public Long getJoinRestrictions() 
    {
        return joinRestrictions;
    }

    public void setPublishActivityRestrictions(Long publishActivityRestrictions) 
    {
        this.publishActivityRestrictions = publishActivityRestrictions;
    }

    public Long getPublishActivityRestrictions() 
    {
        return publishActivityRestrictions;
    }

    public void setCommunityIntroduction(String communityIntroduction) 
    {
        this.communityIntroduction = communityIntroduction;
    }

    public String getCommunityIntroduction() 
    {
        return communityIntroduction;
    }

    public void setCreateUserId(Long createUserId) 
    {
        this.createUserId = createUserId;
    }

    public Long getCreateUserId() 
    {
        return createUserId;
    }

    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }

    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    public void setYn(Long yn) 
    {
        this.yn = yn;
    }

    public Long getYn() 
    {
        return yn;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("communityId", getCommunityId())
            .append("communityName", getCommunityName())
            .append("communityIcon", getCommunityIcon())
            .append("communityType", getCommunityType())
            .append("joinRestrictions", getJoinRestrictions())
            .append("publishActivityRestrictions", getPublishActivityRestrictions())
            .append("communityIntroduction", getCommunityIntroduction())
            .append("createUserId", getCreateUserId())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("updateUser", getUpdateUser())
            .append("updateTime", getUpdateTime())
            .append("yn", getYn())
            .toString();
    }
}
